﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
<%@ Import Namespace="Ornament.Web" %>
<%
    if (Request.IsAuthenticated && HttpContext.Current.User.Identity != null)
    {
%>
欢迎,<%=Html.Encode(Page.User.Identity.Name)%>
| <a href="/Account/Info">设定</a> | <a href="/Account/LogOff" title="退出登录" id="logout">
    退出</a>
<hr style="margin: 0px 0; width: 100%" />
登录时间：
<%=OrnamentContext.Current.CurrentUser.LastActivityDate %>
<%
    }
    
%>
<script type="text/javascript" language="javascript">
    $("#logout").click(function () {
        return confirm("你现在点击退出，确定继续吗?");
    });
</script>
